import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/home/index.vue'

const routes = [{
        path: '/',
        name: 'home',
        component: Home
    },
    {
        path: '/film',
        name: 'film',
        component: () =>
            import ('../views/film/index.vue')
    },
    {
        path: '/xinwen',
        name: 'xinwen',
        component: () =>
            import ('../views/xinwen/index.vue')
    },
    {
        path: '/me',
        name: 'me',
        component: () =>
            import ('../views/me/index.vue')
    },
]


const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router